<?php
$this->Html->addCrumb('Quote Email Recipients', '/admin/quoteemails');
$this->Html->addCrumb('Add');
?>
<?php 
$this->Html->scriptStart(array('inline' => false));
echo '
      $(function(){
        $("#QuoteEmailAdminAddForm").TWS_Form( {
          validate : {
          rules : {
            QuoteEmailEmail : {required : true, email: true, help : "This is an email address to which an online quote will be sent"}
          }
          }});
        });
       ';
$this->Html->scriptEnd();
?>
<h1>Add Quote Email Recipient</h1>

<?php echo '<div id="actionLink">'.$this->Html->link('Back to list of Quote Email Recipients',array('action'=>'index')).'</div>'; ?>

<?php echo $this->element('errors', array('errors' => isset($errors)? $errors : null)); ?>
<?php

echo $this->TWSForm->create('QuoteEmail',  array(
    'inputDefaults' => array(
        'div' => array('class'=>'row')),
        'class'=>'inlineForm',
        'type'=>'file'));

echo $this->TWSForm->input('email', array('name'=>'QuoteEmailEmail', 'type'=>'text', 'label'=>'<span class="required">*</span>Email'));
echo $this->TWSForm->end( array("label"=>"Add", "class"=>"button"));


?>